****************************************
* Table E2: Hurricane Distance and Weekly Google Searches 2004-2009
******************************************

preserve
import delim "$input/gtrends_weekly_regressiondata.csv", clear


*flood 

qui reg flood new2min google yahoo bing i.stateid##i.weekid i.year , cl(stateid)
outreg2 using "$output/tabe2.doc", replace  dec(3)

*life
qui reg life new2min google yahoo bing i.stateid##i.weekid i.year , cl(stateid)
outreg2 using "$output/tabe2.doc", append  dec(3)

*car

qui reg car new2min google yahoo bing i.stateid##i.weekid i.year , cl(stateid)
outreg2 using "$output/tabe2.doc", append  dec(3)

*home

qui reg home new2min google yahoo bing i.stateid##i.weekid i.year , cl(stateid)
outreg2 using "$output/tabe2.doc", append  dec(3)

*health

qui reg health new2min google yahoo bing i.stateid##i.weekid i.year , cl(stateid)
outreg2 using "$output/tabe2.doc", dec(3) append tex  

restore

